package com.aidong.carnival.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.aidong.carnival.entity.Photo;
import com.aidong.carnival.entity.Talent;
import com.aidong.carnival.entity.Vote;
import com.aidong.carnival.entity.VotedTalent;

public interface TalentDao {
	public List<Talent> list(@Param("cid") int cid, @Param("type") String type, @Param("offset") int offset,
			@Param("limitSize") int limitSize);

	public Talent findByIdongId(@Param("cid") int cid, @Param("idongId") int idongId);

	public int create(Talent talent);

	public int addPhotos(List<Photo> pList);

	public void vote(Vote vote);

	public void addVoteLog(Vote vote);

	public int votedCount(@Param("carnivalId") int carnivalId, @Param("idongId") int idongId);
	
	public List<VotedTalent> selectVoted(@Param("carnivalId") int carnivalId, @Param("idongId") int idongId);
}
